﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="ATMSystem_G5_HaUI.Home" %>

<%@ Register TagName="Withdraw" Src="~/UC2/UC2_Withdraw.ascx" TagPrefix="UC2" %>
<%@ Register TagName="CheckBalance" Src="~/UC3/CheckBalance.ascx" TagPrefix="UC3" %>
<%@ Register TagName="ViewHistory" Src="~/UC4/ViewHistoryControl.ascx" TagPrefix="UC4" %>
<%@ Register TagName="TransferCash" Src="~/UC5/TransferCash.ascx" TagPrefix="UC5" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="Content/Style/Style.css" />
    <link href="Content/Style/CheckBalanceStyle.css" rel="stylesheet" />
    <link href="Content/Style/StyleTransfer.css" rel="stylesheet" />
    <link type="text/css" rel="stylesheet" href="Content/Style/OtherStyle.css"/>
    <link href="Content/Style/StyleViewHistory.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Panel ID="PanelUC1" runat="server" Visible="true">
                <div id="divall">
                    <div id="left">
                        <asp:Button runat="server" ID="btn1" Text="Button1" OnClick="btn1_Click" />
                        <asp:Button runat="server" ID="btn2" Text="Button2" OnClick="btn2_Click" />
                        <asp:Button runat="server" ID="btn3" Text="Button3" OnClick="btn3_Click" />
                    </div>
                    <div id="center">
                        <div id="divtop">
                            <div id="banner">
                                <div id="divicon"></div>
                                <div id="divbanknem">
                                    <p>THE WORLD BANK</p>
                                </div>
                            </div>
                        </div>
                        <div id="divCenterMain">
                            <asp:Panel ID="UpdatePanelDefault" runat="server" Visible="true">
                                <div id="divHome">
                                    <asp:Label runat="server" ID="lb1" Text="Welcome to ATM System"></asp:Label><br />
                                    <asp:Label runat="server" ID="lb2" Text="Insert your card..."></asp:Label>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="UpdatePanelValidCardFail" runat="server" Visible="false">
                                <div id="Div1" class="uc1Main">
                                    <asp:Label runat="server" ID="Label2" Text="Card is not valid"></asp:Label><br />
                                    <asp:Label runat="server" ID="Label3" Text="Insert your card..."></asp:Label>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="UpdatePanelValidPIN" runat="server" Visible="false">
                                <div id="Div2" class="uc1Main">
                                    <asp:Label runat="server" ID="Label4" Text="Insert your PIN"></asp:Label><br />
                                    <asp:TextBox runat="server" ID="txtPIN" TextMode="Password"></asp:TextBox>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="UpdatePanelReValidPIN" runat="server" Visible="false">
                                <div id="Div3" class="uc1Main">
                                    <asp:Label runat="server" ID="Label5" Text="PIN is not valid, re-enter PIN"></asp:Label><br />
                                    <asp:TextBox runat="server" ID="txtRePIN" TextMode="Password"></asp:TextBox>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="UpdatePanelBlockCard" runat="server" Visible="false">
                                <div id="Div4" class="uc1Main">
                                    <asp:Label runat="server" ID="Label6" Text="Your card is blocked and swallowed"></asp:Label><br />
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="UpdatePanelMainMenu" runat="server" Visible="false">
                                <div id="menulabel">
                                    <div id="menulabelTitle"></div>
                                    <div id="labelleft">
                                        <div>
                                            <asp:Label runat="server" ID="lbWithdraw" Text="Withdraw"></asp:Label><br />                                            
                                        </div>
                                        <div>
                                            <asp:Label runat="server" ID="Label8" Text="Check Balance"></asp:Label><br />                                            
                                        </div>
                                        <div>
                                            <asp:Label runat="server" ID="Label9" Text="View History"></asp:Label><br />                                            
                                        </div>
                                    </div>
                                    <div id="labelright">
                                        <div>
                                            <asp:Label runat="server" ID="Label10" Text="Transfer Cash"></asp:Label><br />                                           
                                        </div>
                                        <div>
                                            <asp:Label runat="server" ID="Label11" Text="Exit"></asp:Label><br />  
                                        </div>
                                        <div>
                                            <asp:Label runat="server" ID="Label12" Text=""></asp:Label><br />                                            
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div id="right">
                        <asp:Button runat="server" ID="btn4" Text="Button4" OnClick="btn4_Click" />
                        <asp:Button runat="server" ID="btn5" Text="Button5" OnClick="btn5_Click" />
                        <asp:Button runat="server" ID="btn6" Text="Button6" OnClick="btn6_Click" />
                    </div>
                    <div id="divcenter-empty"></div>
                    <div class="divbottom">
                        <div id="insercard">
                            <asp:Label ID="Label1" runat="server" Text="Insert your card here!"></asp:Label><br />
                            <asp:TextBox runat="server" ID="txtCard"></asp:TextBox><br />
                            <asp:Button runat="server" ID="btnInsertCard" Text="Insert card" OnClick="btnInsertCard_Click" />
                        </div>
                        <div id="divnumpad">
                            <div id="line1">
                                <asp:Button ID="num1" runat="server" Text="1" OnClick="num1_Click" />
                                <asp:Button ID="num2" runat="server" Text="2" OnClick="num2_Click"/>
                                <asp:Button ID="num3" runat="server" Text="3" OnClick="num3_Click"/>
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click"/>
                            </div>
                            <div id="line2">
                                <asp:Button ID="num4" runat="server" Text="4" OnClick="num4_Click"/>
                                <asp:Button ID="num5" runat="server" Text="5" OnClick="num5_Click"/>
                                <asp:Button ID="num6" runat="server" Text="6" OnClick="num6_Click"/>
                                <asp:Button ID="btnClear" runat="server" Text="Clear" OnClick="btnClear_Click"/>
                            </div>
                            <div id="line3">
                                <asp:Button ID="num7" runat="server" Text="7" OnClick="num7_Click"/>
                                <asp:Button ID="num8" runat="server" Text="8" OnClick="num8_Click"/>
                                <asp:Button ID="num9" runat="server" Text="9" OnClick="num9_Click"/>
                                <asp:Button ID="btnEnter" runat="server" Text="Enter" OnClick="btnEnter_Click" />
                            </div>
                            <div id="line4">
                                <asp:Button ID="numDot" runat="server" Text="." />
                                <asp:Button ID="num0" runat="server" Text="0" OnClick="num0_Click"/>
                                <asp:Button ID="numSharp" runat="server" Text="#" />
                            </div>
                        </div>
                    </div>
                </div>
                </asp:Panel>
                <asp:Panel ID="PanelUC2" runat="server" Visible="false">
                    <UC2:Withdraw ID="Withdraw" runat="server" />
                </asp:Panel>
                <asp:Panel ID="PanelUC3" runat="server" Visible="false">
                    <UC3:CheckBalance ID="CheckBalance" runat="server"></UC3:CheckBalance>
                </asp:Panel>
                <asp:Panel ID="PanelUC4" runat="server" Visible="false">
                    <UC4:ViewHistory ID="ViewHistory" runat="server"></UC4:ViewHistory>
                </asp:Panel>
                <asp:Panel ID="PanelUC5" runat="server" Visible="false">
                    <UC5:TransferCash ID="TransferCash" runat="server" />
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
